import request from '@/utils/request'

export default {
  getInfo(data) {
    return request({
      url: '/web/auth/info',// 分类列表
      method: 'get',
      params: data
    })
  },
  loginByScanWeixin(data) {
    return request({
      url: '/web/auth/loginByScanWeixin',// 客户微信登录 
      method: 'post',
      data
    })
  },

  login(data) {
    return request({
      url: '/web/auth/login',// 客户登录 
      method: 'post',
      data
    })
  },


  logout(data) {
    return request({
      url: '/web/auth/logout',// 客户登出 
      method: 'post',
      data
    })
  },

  adlist(data) {
    return request({
      url: '/versionlib/versioncontent/adlist',//广告banner
      method: 'get',
      params: data
    })
  },
  classType(data) {
    return request({
      url: '/websouremate/classif/list',// 分类列表
      method: 'get',
      params: data
    })
  },
  getList(data) {
    return request({
      url: '/websouremate/details/list',// 详情列表
      method: 'get',
      params: data
    })
  },

  getDetailst(data) {
    return request({
      url: '/websouremate/details/details',  // 详情列表
      method: 'get',
      params: data
    })
  },
  findbyname(data) {
    return request({
      url: '/websouremate/details/findbyname',  // 详情列表
      method: 'get',
      params: data
    })
  },
  regCaptcha(data) {
    return request({
      url: '/web/auth/regCaptcha',// 注册手机验证码 
      method: 'post',
      data
    })
  },


  register(data) {
    return request({
      url: '/web/auth/register',// 注册 
      method: 'post',
      data
    })
  },
  loginbymobile(data) {
    return request({
      url: '/web/auth/loginbymobile',// 手机登录注册 
      method: 'post',
      data
    })
  },

  zfbpayList(data) {
    return request({
      url: '/web/pay/zfbpayList',// 支付宝支付通道
      method: 'post',
      data
    })
  },

  //@parame data{’messageType’:’订单类型 1余额充值 2购买素材’,’pirce’:’金额’,’numbers’:’数量’,’goodsid’:’商品id’,’payType’:’支付类型wx/zfb’,’configId’:’支付通道ID’}
  generateOrder(data) {
    return request({
      url: '/web/pay/generateOrder',// 生成订单
      method: 'post',
      data
    })
  },


  //@parame data{’ordersn’:’’}
  createNative(data) {
    return request({
      url: '/web/pay/createNative',// 创建扫码支付
      method: 'post',
      data
    })
  },

  queryByOrderSn(data) {
    return request({
      url: '/web/pay/queryByOrderSn',// 充值状态查询
      method: 'post',
      data
    })
  },

  moneyApply(data) {
    return request({
      url: '/web/playithdraw/apply', //用户申请提现！
      method: 'post',
      data
    })
  },

  realCreate(data) {
    return request({
      url: '/web/realprove/create',// 创建实名
      method: 'post',
      data
    })
  },

  realUpdate(data) {
    return request({
      url: '/web/realprove/update',// 修改实名信息
      method: 'post',
      data
    })
  },
  realproves(data) {
    return request({
      url: '/web/realprove/realproves',// 获取实名信息详情
      method: 'get',
      params: data
    })
  },


  positiveCardOrc(data) {
    return request({
      url: '/web/realprove/positiveCardOrc',// 身份证识别
      method: 'post',
      data
    })
  },
  uploadPath: process.env.BASE_API + '/web/realprove/positiveCardOrc',


  baomingcreate(data) {
    return request({
      url: '/web/storage/baomingcreate',// 对象存储
      method: 'post',
      data
    })
  },


  province(data) {
    return request({
      url: '/web/region/clist',//省
      method: 'get',
      params: data
    })
  },

  city(data) {
    return request({
      url: '/web/region/list',//市
      method: 'get',
      params: data
    })
  },

  orderList(data) {
    return request({
      url: '/websouremate/paybuy/list',//订单查询
      method: 'get',
      params: data
    })
  },

  rechargeorderList(data) {
    return request({
      url: '/web/isorderSele/list',//订单查询
      method: 'get',
      params: data
    })
  },

  orderDetails(data) {
    return request({
      url: '/web/isorderSele/details',//订单详情查询
      method: 'get',
      params: data
    })
  },


  mateCreateOrder(data) {
    return request({
      url: '/websouremate/paybuy/mateCreateOrder',//购买素材创建订单
      method: 'post',
      data
    })
  },

  payOrder(data) {
    return request({
      url: '/websouremate/paybuy/payOrder',//购买素材支付
      method: 'post',
      data
    })
  },























}






